<div class="span3">
    <h3>gerente de eventos</h3>
    <ul class="nav nav-pills nav-stacked">
        <?
        foreach($Events as $Event)
        {
        ?>
            <li class="<?if(isset($this->params['pass'][0]))echo($this->params['pass'][0]==$Event['Event']['id']?'active':'');?>">
                <? echo $this->Html->link($Event['Event']['title'], array('controller' => 'calendar', 'action' => 'edit',$Event['Event']['id']), array('class' => 'button')); ?>
            </li>
        <?}
        ?>
    </ul>


    <ul class="nav nav-pills nav-stacked">
        <li class="nav-header">Ações</li>
        <li><? echo $this->Html->link('<i class="icon-pencil"></i> Adicionar novo', array('controller' => 'calendar', 'action' => 'add'), array('class' => 'button', 'escape'=>false)); ?></li>
        <li><? echo $this->Html->link('<i class="icon-book"></i> Ver todos', array('controller' => 'calendar', 'action' => 'index'), array('class' => 'button', 'escape'=>false)); ?></li>
    </ul>
</div>